

IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[spSchedule_UpdateSchedule]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spSchedule_UpdateSchedule]
GO

GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Eric Liew
-- Create date: 6/2/2009
-- Description:	Update a Owner
-- =============================================
CREATE PROCEDURE [dbo].[spSchedule_UpdateSchedule]
(
	@ScheduleDriverTaxiId Int,
	@DriverId INT
)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON

	UPDATE ScheduleDriverTaxi
	SET
		DriverId = @DriverId
	WHERE
		ScheduleDriverTaxiId = @ScheduleDriverTaxiId    

	RETURN 0
 

END
GO
